package org.fight.landowner.common.serialize;

/**
 * @Author wangxuehao02
 * @Date 2024/2/5 4:07 PM
 * @Description
 **/
public enum SerializableType {
    JSON((byte) 1);

    private final byte code;

    SerializableType(byte code) {
        this.code = code;
    }

    public byte getCode() {
        return code;
    }

    public static SerializableType getByCode(byte code) {
        switch (code) {
            case 1: {
                return JSON;
            }
            default: {
                return null;
            }
        }
    }
}
